#!/usr/bin/python
#-*- coding: utf-8 -*-

###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Kitchen of Awesome.
#
# Kitchen of Awesome is free software: you can redistribute it and/or 
# modify it under the terms of the GNU General Public License 
# as published by the Free Software Foundation, either 
# version 3 of the License, or (at your option) any later 
# version.
#
# Kitchen of Awesome is distributed in the hope that it will be 
# useful, but WITHOUT ANY WARRANTY; without even the implied 
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public 
# License along with Kitchen of Awesome. 
# If not, see http://www.gnu.org/licenses/.
###########################################################

import datetime

datetime. 


from data import KoaObject, APPLICATION

class Calendar(KoaObject):
	def __init__(self):
		self.appointments = {}
	def createAppointment():
		appointment = Appointment()
		
KoaObject.registerClass(Calendar)


# ABSTRACT BASE CLASS ???
class Appointment(KoaObject):
	def __init__(self):
		KoaObject.__init__(self)
		self.start = None
		self.end = None
		self.title = None
		self.description = None
		self.done = False
	def setTitle(self, title):
		self.title = title
	def getTitle(self):
		return self.title

	def setDone(self):
		self.done = True
	def setUndone(self):
		self.done = False
	def isDone(self):
		return self.done

	def setNote(self):
		pass #TODO: Implement


KoaObject.registerClass(Appointment)

class Assigment(KoaObject):
	def __init__(self):
		self.user
		self.event
KoaObject.registerClass(Assignment)

